@import "./cssreset";
@import "./color";
@import "./size";
header {
    background-color: #333333;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    a {
        display: inline-block;
        color: #b0b0b0;
        text-decoration: none;
    }

    .bancen {
        width: 1200px;
        margin: 0 auto;
    }
    i {
        display: inline-block;
        width: 1px;
        height: 12px;
        background-color: #061806;
        margin: 0 5px;
        margin-top: 8px;
    }
    span {
        float: right;
        margin-top: 5px;
    }
    span {
        margin-right: 10px;
        img {
            width: 20px;
            display: inline-block;
        }
    }
    .right {
        float: right;
        a {
            margin-right: 10px;
        }
        img {
            display: inline-block;
            width: 20px;
        }
        .car {
            padding-left: 10px;
            width: 80px;
            height: 100%;
            background-color: #424242;
        }
        div {
            float: left;
            padding-right: 3px;
        }
    }
}
.top {
    z-index: 100;
    box-shadow: 0 4px 10px 0 rgb(0 0 0 / 30%);
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
    height: 50px;
    line-height: 50px;
    width: 1140px;
    background: #f4f4f4;
    margin: 0 auto;
    position: absolute;
    top: 40px;
    left: 50%;
    margin-left: -570px;
    &.too {
        position: fixed;
        top: 0;
    }
    a {
        display: inline-block;
        float: left;
        margin: 10px 30px;
        position: relative;
        z-index: 99;
    }
    #fangda {
        font-size: 25px;
        position: absolute;
        top: 0;
        left: 1050px;
        z-index: 99;
        cursor: pointer;
    }
    .sous {
        width: 70%;
        height: 300px;
        position: absolute;
        top: 0px;
        left: 250px;
        z-index: 99;
        display: none;
        background-color: white;
        input {
            width: 400px;
            height: 30px;
            margin-left: 100px;
            border: none;
            &:focus {
                outline: none;
            }
        }

        &.active {
            display: block;
        }
        .close {
            position: absolute;
            top: 0;
            left: 100%;
            margin-left: -40px;
            cursor: pointer;
        }
    }
    .nav {
        position: relative;
        background-color: #f4f4f4;
        z-index: 9;
        a {
            color: #767676;
            float: left;
            font-size: 14px;
            margin: 0;
            padding: 0 15px;
        }
        a:hover + .topnav {
            display: block;
            background-color: #fff;
        }

        .topnav {
            width: 20px;
            background-color: #fff;
            position: absolute;
            top: 50px;
            width: 100%;
            display: none;
        }
    }

    .topnav {
        &:hover {
            display: block;
        }
        div {
            background: #fff;
            text-align: center;
            padding: 10px;
            width: 190px;
            font-size: 13px;
            text-align: center;
            margin: 0;
            box-sizing: border-box;
            line-height: 15px;
            float: left;
            line-height: 30px;
            h4 {
                display: inline-block;
                color: black;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
            }
            p,
            .s2 {
                color: #989898;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
            }
            .s1 {
                float: left;
                display: inline-block;
                color: red;
            }
            .s2 {
                text-decoration: line-through;
            }
            img {
                width: 100px;
                margin-left: 15px;
            }
        }
    }
}
